<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" class="form-control" name="row[user_name]" type="text" value="{$row.user_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Real_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-real_name" class="form-control" name="row[real_name]" type="text" value="{$row.real_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" data-rule="required" class="form-control" name="row[password]" type="text" value="{$row.password}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Referrer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-referrer_id"  data-source="user/member/index" data-primary-key="member_id" data-field="user_name" class="form-control selectpage" name="row[referrer_id]" type="text" value="{$row.referrer_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Password_trade')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password_trade" class="form-control" name="row[password_trade]" type="text" value="{$row.password_trade}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Password_trade_message')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password_trade_message" class="form-control" name="row[password_trade_message]" type="text" value="{$row.password_trade_message}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Card_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_type" data-rule="required" class="form-control" name="row[card_type]" type="text" value="{$row.card_type}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Card_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_id" data-rule="required integer"  class="form-control" name="row[card_id]" type="text" value="{$row.card_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Currency_exchange_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-currency_exchange_id" data-rule="required "data-source="asset/exchange/index" data-field="currency_name_cn" data-primary-key="currency_exchange_id"  class="form-control selectpage" name="row[currency_exchange_id]" type="text" value="{$row.currency_exchange_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Reg_ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reg_ip" data-rule="required" class="form-control" name="row[reg_ip]" type="text" value="{$row.reg_ip}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Reg_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reg_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[reg_time]" type="text" value="{$row.reg_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Login_ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-login_ip" class="form-control" name="row[login_ip]" type="text" value="{$row.login_ip}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Login_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-login_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[login_time]" type="text" value="{$row.login_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vip_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vip_level"  class="form-control" name="row[vip_level]" type="number" value="{$row.vip_level}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vip_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vip_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[vip_end_time]" type="text" value="{$row.vip_end_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Head_ico')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-head_ico" class="form-control" size="50" name="row[head_ico]" type="text" value="{$row.head_ico}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-head_ico" class="btn btn-danger plupload" data-input-id="c-head_ico" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-head_ico"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-head_ico" class="btn btn-primary fachoose" data-input-id="c-head_ico" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-head_ico"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-head_ico"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Country')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-country" class="form-control" name="row[country]" type="number" value="{$row.country}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Province')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province" class="form-control" name="row[province]" type="number" value="{$row.province}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city" class="form-control" name="row[city]" type="number" value="{$row.city}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_lock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="is_lock" item="vo"}
                <label for="row[is_lock]-{$key}"><input id="row[is_lock]-{$key}" name="row[is_lock]" type="radio" value="{$key}" {in name="key" value="$row.is_lock"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="status" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><label style="color: red;font-size:17px">*&nbsp;</label>{:__('Country_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-country_id" data-rule="required integer"  class="form-control " name="row[country_id]" type="text" value="{$row.country_id}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
